package com.orifine.web;

public class Domain {
	public Domain(String... domains) {
		for (String domain : domains) {
			attach(domain);
		}
	}

	private StringBuffer domain = new StringBuffer();

	public Domain attach(String domain) {
		if (this.domain.length() != 0)
			this.domain.append('.');
		this.domain.append(domain);
		return this;
	}

	public String toString() {
		return this.domain.toString();
	}
}
